//
//  CategoryLeftViewCell.m
//  EastMarket
//
//  Created by 李鹏程 on 16/12/20.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#import "CategoryLeftViewCell.h"

@implementation CategoryLeftViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        _lblTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH / 4, 45)];
//        _lblTitle.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_lblTitle];
        
        CALayer *bottomBorder = [CALayer layer];
        float height = _lblTitle.frame.size.height - 1.0f;
        float width = _lblTitle.frame.size.width;
        bottomBorder.frame = CGRectMake(0.0f, height, width, 1.0f);
        bottomBorder.backgroundColor =  EastMarket_hintFontColor.CGColor;
        [_lblTitle.layer addSublayer:bottomBorder];
        
//        UIView *viewSpacing = [[UIView alloc] initWithFrame:CGRectMake(0, _lblTitle.frame.origin.y + _lblTitle.frame.size.height - 1, SCREEN_WIDTH / 4, 1)];
//        [self.contentView addSubview:viewSpacing];
//        viewSpacing.backgroundColor = EastMarket_hintFontColor;
    }
    
    return self;
}

@end
